This page last changed on Jun 26, 2012 by jed.wheeler@involver.com.

The SML developer platform automatically logs many actions in AMP's built-in Analytics and provides tools to manually log custom actions using Javascript.  

You can also use any Javascript-based third-party analytics solution (Google Analytics for example).  Simply add the js to top of your page as instructed and add facebook.involver.com to your list of domains.  

List of logging items

name description update frequency
Facebook tab view Logs the tabs viewed which are added by AMP in facebook fan page Immediate
Items publication Logs all item published through AMP Immediate
Items publication likes Sum of all likes on publications Daily
Items publication comments List of all comments on SML tabs Daily
Items retweeted List of all retweets Daily
Retweets snapshot Sum of all followers of all retweet Daily
Clickthroughs snapshot Number of clickthroughs Daily
Flash embed views Number of views of flash file Immediate
Share log Logs when user shares information Immediate
Item like in tab Logs when users like something in the tab Immediate
Signup completion Logs signup information Immediate
Facebook comment Logs comments posted on tab Immediate
Poll response Logs response to polls Immediate
Twitter mentions Logs when twitter account is mentioned again Daily
Twitter followers Logs number of twitter followers Daily
Facebook page fans Logs number of facebook fans Daily
Analytics.clickthrough Logs custom clickthrough Immediate
Analytics.logaction Logs custom actions Immediate
Analytics.logClickthroughRedirect
Logs custom clickthrough with redirect link Immediate

Automatic Logging in SML & AMP

The Involver platform automatically logs many common actions in pages registered in AMP and in SML tabs.

Auto Logging---> Global Logging (Occurs on all Facebook fan pages registered in AMP):

name can be added to tabs? description
Facebook tab view Always instrumented in tabs Each single tab in facebook
Facebook page fans NO Regular fan pages(people who like the whole page)
Item like in tab YES Like buttons inside a specific tab(probably sml)
Facebook comment YES Comments in each tab depending if that functionality is there.
Items publication YES Things published through amp
Items publication likes YES Things liked which are published through amp
Items publication comments YES Comments on items that are published through amp

Auto Logging-->Application Specific Logging:_

name application specific logging items
RSS feed  
Twitter Items retweeted
Retweets snapshot
Twitter mentions
Twitter followers
YouTube Flash embed views (only for swf/flash formatted files)
Flickr Custom actions to measure carousel use
Photo Gallery  
Scribd  
Promotion Gallery  
Poll Poll response
Signup Signup completion
Welcome  
Coupons  
Badges  
Gifts  
Contest Signup completion
Music Player  
Flash Embed Flash embed views
Store Locator  
Social Catalog  
Stories  
Leaderboard  
Ratings and Reviews  
All links Clickthroughs snapshot
All share tabs Share log

Manual Logging

You can call these JavaScript functions to add custom logging to your SML tabs. Basic documentation for each is included on this page and you can find more detailed information for each of them on their corresponding pages.

The data types for the params in these functions are:

name of param type
name string
param object
user_dentifier integer
content_item_id integer

Analytics.logAction

Example :

<script type="text/javascript">

function highlightAction(div_id){
Analytics.logAction('subtab highlighted', {});
}
</script>

<div id="some_sub_tab" onclick="highlightAction('some_sub_tab')">
This is a tab with some interesting information inside and we care if they click on it.
</div>

Analytics Tab View:

Note: Current implementation of analytics does not allow user to access values apart from name of the action, future implementations may allow. Please consult SML documentation for any discrepancy.

Using Javascript to add custom tracking.

You can add additional tracking to your tab by using the Analytics.logClickthrough and Analytics.logClickthroughRedirect functions. Most SML interact-able elements allow for the firing of custom javascript either onclick or onfirstclick. you can reference the documentation for the specific feature block or tag you need to use to confirm availability. You can also use CSS classes and ID's to fire javascript remotely from anywhere in your tab.

Analytics.logClickthrough

Example:

<a href="http://yahoo.com" onclick="Analytics.logClickthrough('Clickthrough Count')">This is a link to Yahoo</a>

Analytics tab view:

Analytics.logClickthroughRedirect

Example:

<a href="#_" onclick="Analytics.logClickthroughRedirect('Google Redirect', 'http://www.google.com')">This is a link to Google</a>


1.png (image/png)
2.png (image/png)
3.png (image/png)
4.png (image/png)
5.png (image/png)
6.png (image/png)
Document generated by Confluence on Feb 12, 2013 09:09